package models

import "gorm.io/gorm"

type User struct { //用户表
	gorm.Model
	Username string `gorm:"varchar(50)"`
	Password string `gorm:"varchar(50)"`
}
type Role struct { //角色表
	gorm.Model
	RoleName string `gorm:"varchar(50)"`
}
type UserRole struct { //用户角色关系表
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type Node struct { //权限表
	gorm.Model
	NodeName string `gorm:"varchar(50)"`
}
type RoleNode struct { //角色权限表
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type Car struct {
	gorm.Model
	CarNo   string `gorm:"type:varchar(50)"`
	CarName string `gorm:"type:varchar(50)"`
	CarCode string `gorm:"type:varchar(50)"`
}
type CarOrder struct {
	gorm.Model
	OrderNo   string `gorm:"type:varchar(50)"`
	OrderFrom string `gorm:"type:varchar(50)"`
	OrderTo   string `gorm:"type:varchar(50)"`
	OrderGood string `gorm:"type:varchar(50)"`
	Cid       int    `gorm:"type:int"`
}
type BigCar struct {
	gorm.Model
	CarCode  string `gorm:"type:varchar(50)"`
	CarName  string `gorm:"type:varchar(50)"`
	CarPrice int    `gorm:"type:int"`
}
type BigCarOrder struct {
	gorm.Model
	OrderCode  string `gorm:"type:varchar(50)"`
	OrderPrice string `gorm:"type:varchar(50)"`
	Cid        int    `gorm:"type:int"`
}
type BigCarOrderList struct {
	OrderId    int
	OrderCode  string
	OrderPrice int
	CarCode    string
	CarName    string
	CarPrice   int
}
